package com.ruoyi.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.project.domain.entity.ProjectCosting;
import com.ruoyi.project.domain.entity.ProjectPay;
import com.ruoyi.project.domain.query.ProjectCostingQuery;
import com.ruoyi.project.domain.query.ProjectPayQuery;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProjectCostingMapper extends BaseMapper<ProjectCosting> {
    List<ProjectCosting> getList(ProjectCostingQuery query);

    @Delete("DELETE FROM project_costing WHERE project_no = #{projectNo}")
    void deleteByProjectNo(@Param("projectNo") String projectNo);
}
